#app3 .square{
    border: 1px solid  red;
    width: 10vw;
    height: 10vw;
    margin-top: 3vw;
    margin-left: 3vw;
    transition: transform 1s;
}

#app3 .square.active{
    transform: translateX(10vw);
}